from django.conf.urls import *

from account.views import UserFocusedListView
from questions.views import QuestionCreateView, QuestionListView, QuestionUpdateView, QuestionDeleteView, \
    QuestionDetailView, RandomQuestionView, BannerListView, \
    BannerCreateView, QuestionFocusListView, QuestionFocusCreateView, QuestionFocusDeleteView

urlpatterns = [
    url(r'^create/$', QuestionCreateView.as_view(), name='question_create'),
    url(r'^list/$', QuestionListView.as_view(), name='question_list'),
    url(r'^(?P<pk>\d+)/detail/$', QuestionDetailView.as_view(), name='question_detail'),
    url(r'^(?P<pk>\d+)/update/$', QuestionUpdateView.as_view(), name='question_update'),
    url(r'^(?P<pk>\d+)/delete/$', QuestionDeleteView.as_view(), name='question_delete'),

    url(r'^random_question/$', RandomQuestionView.as_view(), name='random_question_list'),
    # url(r'^praise/(?P<pk>\d+)/$', praise_question, name='question_praise_view'),

    url(r'banner_list', BannerListView.as_view(), name='banner_list_view'),
    url(r'banner_create', BannerCreateView.as_view(), name='banner_create_view'),

    url(r'^focus/list$', QuestionFocusListView.as_view()),
    url(r'^focus/create$', QuestionFocusCreateView.as_view()),
    url(r'^focus/delete/(?P<question>\d+)$', QuestionFocusDeleteView.as_view()),

]
